﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Atom.Interface.DataAccess
{
    public class OtherDataAccessFactory
    {
        private OtherDataAccessFactory()
        { }
        private static IDataAccess dataaccess;

        public static IDataAccess Instance()
        {
            if (dataaccess == null)
            {
                dataaccess = Activator.CreateInstance(System.Type.GetType("Atom.Interface.DataAccess." + ConfigurationManager.AppSettings["DataAccess"]), true) as IDataAccess;
            }
            return dataaccess;
        }

    }
}
